<template>
	<uni-nav-bar
	:fixed="true" 
	 shadow
	 :border="false"
	 background-color="#fff"
	 left-icon="left"
	 v-if="showNav"
	  :left-text="leftText"
	 :title="title" @clickLeft="back" />

</template>
<script setup>
import { onMounted,ref } from 'vue';
const showNav = ref(true)
	const props = defineProps({
		title:{
			type:String,
			default:""
		},
		leftText:{
			type:String,
			default:""
		}
	}) 
	// 返回按钮
	const back = ()=>{
		uni.navigateBack()
	}
	onMounted(()=>{
			let flag = navigator.userAgent.toLowerCase().match(/MicroMessenger/i) == "micromessenger"
			if(flag){
	showNav.value = false
}

	})
</script>
<style lang="scss" scoped>
	.uni-navbar--border{
		border-bottom-color:transparent !important;
	}
</style>